/*
 * fillImg.c
 *
 *  Created on: 09/03/2015
 *      Author: lucas
 */

#include <stdio.h>
#include <stdlib.h>
#include "pgma_io.h"
#include "imgifsc.h"

void fillImg(struct Img *img, const int value, const int maxgray)
{
	printf("h:%d w:%d\n", img->height, img->width);
	int i, j;
	int *dataptr=img->data;
	j = (img->height)*(img->width);
	for(i=0; i <= j; i++)
	{
		*dataptr = value;
		dataptr++;
	}
	printf("h:%d w:%d\n", img->height, img->width);
}

